using UnityEngine;
namespace NL.Advanced
{
    public class MountAToB : MonoBehaviour
    {
        public Transform A;

        public Transform B;
        // Start is called before the first frame update
        void Start()
        {

        }

        // Update is called once per frame
        void LateUpdate()
        {
            if (A == null || B == null) return;

            //Vector3 delt = B.position - A.position;

            Vector3 aa = A.position - transform.position;

            transform.position = B.position - aa;
        }
    }
}

